package com.ailot.cloud.upms.api.mapper;

import com.ailot.cloud.upms.common.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("SELECT role_id FROM sys_user_role WHERE user_id = #{userId}")
    List<String> getRoleIdsByUserId(String userId);

}
